package com.weijianhuawen.wjblog.common.domain.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @version: java version 8
 * @Author: weijianhuawen
 * @description:  文章实体类
 * @date: 2024-10-24 16:32
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "t_article")
public class ArticleDo {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String title;

    private String cover;

    private String summary;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Boolean isDeleted;

    private Long readNum;

    private Integer weight;
    private Integer type;
}
